home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / DSHJ2 / GEMDEFS.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-10  |  4.2 KB  |  176 lines

  1. /************************************************************************/
  2. /*    GEMDEFS.H Common GEM definitions and miscellaneous structures.    */
  3. /*        Copyright 1985 Atari Corp.                */
  4. /************************************************************************/
  5.  
  6. /*    EVENT Manager Definitions                    */
  7.                         /* multi flags        */
  8. #define MU_KEYBD  0x0001    
  9. #define MU_BUTTON 0x0002
  10. #define MU_M1     0x0004
  11. #define MU_M2     0x0008
  12. #define MU_MESAG  0x0010
  13. #define MU_TIMER  0x0020
  14.                         /* keyboard states    */
  15. #define K_RSHIFT 0x0001
  16. #define K_LSHIFT 0x0002
  17. #define K_CTRL   0x0004
  18. #define K_ALT    0x0008
  19.                         /* message values    */
  20. #define MN_SELECTED 10
  21. #define WM_REDRAW   20
  22. #define WM_TOPPED   21
  23. #define WM_CLOSED   22
  24. #define WM_FULLED   23
  25. #define WM_ARROWED  24
  26. #define WM_HSLID    25
  27. #define WM_VSLID    26
  28. #define WM_SIZED    27
  29. #define WM_MOVED    28
  30. #define WM_NEWTOP   29
  31. #define AC_OPEN     40
  32. #define AC_CLOSE    41
  33.  
  34. /*    FORM Manager Definitions                    */
  35.                         /* Form flags        */
  36. #define FMD_START  0
  37. #define FMD_GROW   1
  38. #define FMD_SHRINK 2
  39. #define FMD_FINISH 3
  40.  
  41. /*    RESOURCE Manager Definitions                    */
  42.                         /* data structure types */
  43. #define R_TREE     0
  44. #define R_OBJECT   1
  45. #define R_TEDINFO  2
  46. #define R_ICONBLK  3
  47. #define R_BITBLK   4
  48. #define R_STRING   5        /* gets pointer to free strings    */
  49. #define R_IMAGEDATA 6        /* gets pointer to free images    */
  50. #define R_OBSPEC   7
  51. #define R_TEPTEXT  8        /* sub ptrs in TEDINFO    */
  52. #define R_TEPTMPLT 9
  53. #define R_TEPVALID 10
  54. #define R_IBPMASK  11        /* sub ptrs in ICONBLK    */
  55. #define R_IBPDATA  12
  56. #define R_IBPTEXT  13
  57. #define R_BIPDATA  14        /* sub ptrs in BITBLK    */
  58. #define R_FRSTR    15        /* gets addr of ptr to free strings    */
  59. #define R_FRIMG    16        /* gets addr of ptr to free images    */
  60.  
  61.                         /* used in RSCREATE.C    */
  62. typedef struct rshdr
  63. {
  64.     int        rsh_vrsn;
  65.     int        rsh_object;
  66.     int        rsh_tedinfo;
  67.     int        rsh_iconblk;    /* list of ICONBLKS        */
  68.     int        rsh_bitblk;
  69.     int        rsh_frstr;    
  70.     int        rsh_string;
  71.     int        rsh_imdata;    /* image data            */
  72.     int        rsh_frimg;    
  73.     int        rsh_trindex;
  74.     int        rsh_nobs;    /* counts of various structs    */
  75.     int        rsh_ntree;
  76.     int        rsh_nted;
  77.     int        rsh_nib;
  78.     int        rsh_nbb;
  79.     int        rsh_nstring;
  80.     int        rsh_nimages;
  81.     int        rsh_rssize;    /* total bytes in resource    */
  82. } RSHDR;
  83. #define    F_ATTR    0            /* file attr for dos_create    */
  84.  
  85.                         /* arrow message    */
  86. #define WA_UPPAGE 0
  87. #define WA_DNPAGE 1
  88. #define WA_UPLINE 2
  89. #define WA_DNLINE 3
  90. #define WA_LFPAGE 4
  91. #define WA_RTPAGE 5
  92. #define WA_LFLINE 6
  93. #define WA_RTLINE 7
  94.  
  95. /*    WINDOW Manager Definitions.                    */
  96.                         /* Window Attributes    */
  97. #define NAME    0x0001
  98. #define CLOSER  0x0002
  99. #define FULLER  0x0004
  100. #define MOVER   0x0008
  101. #define INFO    0x0010
  102. #define SIZER   0x0020
  103. #define UPARROW 0x0040
  104. #define DNARROW 0x0080
  105. #define VSLIDE  0x0100
  106. #define LFARROW 0x0200
  107. #define RTARROW 0x0400
  108. #define HSLIDE  0x0800
  109.                         /* wind_create flags    */
  110. #define WC_BORDER 0
  111. #define WC_WORK   1
  112.                         /* wind_get flags    */
  113. #define WF_KIND        1
  114. #define WF_NAME        2
  115. #define WF_INFO        3
  116. #define WF_WORKXYWH    4
  117. #define WF_CURRXYWH    5
  118. #define WF_PREVXYWH    6
  119. #define WF_FULLXYWH    7
  120. #define WF_HSLIDE    8
  121. #define WF_VSLIDE    9
  122. #define WF_TOP          10
  123. #define WF_FIRSTXYWH     11
  124. #define WF_NEXTXYWH     12
  125. #define WF_RESVD       13
  126. #define WF_NEWDESK     14
  127. #define WF_HSLSIZE       15
  128. #define WF_VSLSIZE       16
  129. #define WF_SCREEN       17
  130.                         /* update flags        */
  131. #define    END_UPDATE 0
  132. #define    BEG_UPDATE 1
  133. #define    END_MCTRL  2
  134. #define    BEG_MCTRL  3
  135.  
  136. /*    GRAPHICS Manager Definitions                    */
  137.                         /* Mouse Forms        */
  138. #define    ARROW        0
  139. #define    TEXT_CRSR   1
  140. #define    HOURGLASS   2
  141. #define BUSY_BEE    2
  142. #define    POINT_HAND  3
  143. #define    FLAT_HAND   4
  144. #define    THIN_CROSS  5
  145. #define    THICK_CROSS 6
  146. #define    OUTLN_CROSS 7
  147. #define    USER_DEF  255
  148. #define M_OFF     256
  149. #define M_ON      257
  150.  
  151. /*    MISCELLANEOUS Structures                    */
  152.                     /* Memory Form Definition Block */
  153. typedef struct fdbstr
  154. {
  155.     long        fd_addr;
  156.     int        fd_w;
  157.     int        fd_h;
  158.     int        fd_wdwidth;
  159.     int        fd_stand;
  160.     int        fd_nplanes;
  161.     int        fd_r1;
  162.     int        fd_r2;
  163.     int        fd_r3;
  164. } FDB;
  165.                     /* Mouse Form Definition Block */
  166. typedef struct mfstr
  167. {
  168.     int    mf_xhot;
  169.     int    mf_yhot;
  170.     int    mf_nplanes;
  171.     int    mf_fg;
  172.     int    mf_bg;
  173.     int    mf_mask[16];
  174.     int    mf_data[16];
  175. } MFORM ;
  176.